package model;

import dao.Track;
import service.TrackService;
import service.TrackServiceImpl;

import java.util.List;

public class TrackModel {
    private static final TrackModel INSTANCE = new TrackModel();
    private static final TrackService trackService = TrackServiceImpl.getInstance();

    private TrackModel() {

    }

    public static TrackModel getInstance() {
        return INSTANCE;
    }

    public List<Track> getTracksByAlbumId(String albumId) {
        return trackService.getTracksByAlbumId(Long.valueOf(albumId));
    }
}
